package com.ftg.learn.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(name = "用户信息")
@TableName("sys_user")
public class SysUserEntity {

    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "用户ID")
    private int id;

    @Schema(description = "用户名")
    private String username;
    @Schema(description = "密码")
    private String password;
    @Schema(description = "学号")
    private String sno;
    @Schema(description = "真实姓名")
    private String realname;
    @Schema(description = "性别")
    private String sex;
    @Schema(description = "头像")
    private String avatar;
    @Schema(description = "手机号")
    private String phone;
    @Schema(description = "邮箱")
    private String email;
    @Schema(description = "地址")
    private String address;
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}
